package com.cq.hd.member.api.vo;

import com.cq.hd.common.serialize.Decimal2Serializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class BusinessGroupPageVo implements Serializable {

    @ApiModelProperty(value = "分组id")
    private Long id;

    @ApiModelProperty(value = "分组名称")
    private String groupName;

    @ApiModelProperty(value = "分组成员个数")
    private Integer num;

    @ApiModelProperty(value = "分组佣金")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal commissionRate;

    @ApiModelProperty(value = "默认分组状态：1-不是默认，2-是默认")
    private Integer defaultState;

    @ApiModelProperty(value = "总分销订单数")
    private Integer totalOrderCount;

    @ApiModelProperty(value = "累计结算分销总佣金")
    private BigDecimal totalSettleCommission;
}
